﻿#include "printsettingpushbutton.h"
#include <QDebug>

PrintSettingPushButton::PrintSettingPushButton(QWidget *parent) : QPushButton(parent)
{
    connect(this, &QPushButton::clicked,
            [=]()
    {
        printSettingWidget.exec();
    });
}

void PrintSettingPushButton::setSettingKey(QString settingKey){
    printSettingWidget.setSettingKey(settingKey);
}

PrintSetting* PrintSettingPushButton::getPrintSetting(){
    return  printSettingWidget.getPrintSetting();
}
